﻿using Dapper.Library;
using System;
using System.Collections.Generic;

namespace Dappr.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            using (var con = DataBase.GetConnection(DatabaseName.Sql_DB))
            {
                string sqlStr = $"select * from 排水渠";
                //var result = con.QuerySql<Dictionary<string, object>>().BySql(sqlStr, null).Get();
                //var result1 = con.QuerySql<Dictionary<string, object>>().BySql(sqlStr, null).ToList();

                var result2 = con.QuerySql<Dictionary<string, object>>().BySql(sqlStr, null).PageList(1,15);///分页基本上不适用，达不到通用性

                
            }
        }
    }
}
